'use strict';

const Controller = require('./base');

class CommandController extends Controller {
  /**
   *  when this ws connection open
   */
  async connected() {
    console.log('connected');
  }

  /**
   *  when the ws connection disconnect
   */
  async disconnect() {
    const message = this.ctx.args[0];
    console.log(message);
  }
}

module.exports = CommandController;
